count even and odd in array